import React from 'react'
import ReactDOM from 'react-dom'
import Com from './com.js'

class Index extends React.Component {
  render () {
    return (<div>我是父组件
            <Com
            name={1}
            age='18'
            hobbies={['吃饭', '睡觉', '打豆豆']}
            body={{ height: '180', weight: 150 }}
            /></div>)
  }
}
ReactDOM.render(
<div>
  <Index/>
</div>, document.getElementById('root'))
